package com.glor.operation.common.user.repo;

import com.glor.operation.common.repo.BaseRepository;
import com.glor.operation.common.user.entity.UserEntity;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by heylear.cai on 2016/2/18.
 */
public interface UserRepository extends BaseRepository<UserEntity, Long> {

    @Query("select u from UserEntity u where u.isDelete = 0 and u.userFlag = 1 and u.username=?1")
    UserEntity findUserByUsername(String username);
}
